'Declaration
Public Overloads Function OMRDetectMarks( _ ByVal ImageID As Integer, _ ByVal Areas() As Rectangle, _ ByVal AreasCount As Integer, _ ByVal HasCharacter As Boolean _ ) As Integer()
public int[] OMRDetectMarks( int ImageID, Rectangle[] Areas, int AreasCount, bool HasCharacter )
public function OMRDetectMarks( ImageID: Integer; Areas: Rectanglearray of; AreasCount: Integer; HasCharacter: Boolean ): array of Integer;
public function OMRDetectMarks( ImageID : int, Areas : Rectangle[], AreasCount : int, HasCharacter : boolean ) : int[];
public: int[]* OMRDetectMarks( int ImageID, Rectangle[]* Areas, int AreasCount, bool HasCharacter )
public: array<int>^ OMRDetectMarks( int ImageID, array<Rectangle>^ Areas, int AreasCount, bool HasCharacter )
Parameters
- ImageID
- GdPicture image identifier.
- Areas
- Array of Rectangle. This parameter is used as a reference to the location of the OMR Fields. Where each Rectangle in the Areas, corresponds to a rectangle surrounding a single OMR field. For example, if 10 Rectangles exist in Areas, there will be 10 OMR Fields to be investigated whether they were checked (filled) or not.
- AreasCount
- Number of Rectangles sent to the method. Basically, the length of Areas().
- HasCharacter
- Whether the OMR field contains a character inside it or not.
Return Value
The method returns an Array of integers.
If the value of an element is 0, then the field was not filled. If the value of an element is 1, then
the field was filled.
The Elements of the returned array will correspond to the Elements of the Rectangles Array Areas().
Where if the first element of the returned array[0] is 0, then the OMR field surrounded by the
rectangle in the element of Areas[0] was not filled. Similarly, if the first element of the returned
array[5] is 1, then the OMR field surrounded by the rectangle in the element of Areas[5] was filled.